<? foreach ($categories as $category): ?>
<?php

    $colors = array();
    for ($i=0; $i<3; $i++) {
        $colors[$i] = rand(0, 255);
    }

?><div class="item">
    <?= $this->Html->link(
        $category['Category']['name'], array(
            'controller' => 'kategorija',
            'action'     => urlize($category['Category']['name']),
            $category['Category']['id']
        )
    ) ?>
</div>
<? endforeach ?>
<br clear="all">
